package com.sys.ai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sys.ai.domain.AiKnowledgeFragmentation;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 知识库分片Mapper接口
 *
 * @author LGY
 * @date 2025-05-26
 */
@Repository
public interface AiKnowledgeFragmentationMapper extends BaseMapper<AiKnowledgeFragmentation> {

    /**
     * 查询知识库分片列表
     *
     * @param aiKnowledgeFragmentation 知识库分片
     * @return 知识库分片集合
     */
    List<AiKnowledgeFragmentation> selectAiKnowledgeFragmentationList(AiKnowledgeFragmentation aiKnowledgeFragmentation);

    /***
     * 根据文件id批量删除
     * @param fileIds 文件id
     */
    void deleteBatchByFileIds(@Param("fileIds") List<String> fileIds);
}